package com.yhao.stocknew.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 基础信息表
 * </p>
 *
 * @author yhao
 * @since 2023-12-15
 */
@ApiModel(value = "BaseInfo对象", description = "基础信息表")
@NoArgsConstructor
@AllArgsConstructor
public class BaseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "代码")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "区域")
    private String area;

    @ApiModelProperty(value = "上市日期")
    private String listDate;

    @ApiModelProperty(value = "每股净资产")
    private BigDecimal perNet;

    @ApiModelProperty(value = "每股收益")
    private BigDecimal perIncome;

    @ApiModelProperty(value = "净收益")
    private BigDecimal netProfit;

    @ApiModelProperty(value = "增长率")
    private BigDecimal growthRate;

    @ApiModelProperty(value = "营业收入")
    private BigDecimal tradeIncome;

    @ApiModelProperty(value = "每股现金流")
    private BigDecimal perCash;

    @ApiModelProperty(value = "每股公积金")
    private BigDecimal perFund;

    @ApiModelProperty(value = "每股未分配利润")
    private BigDecimal perUndistributeProfit;

    @ApiModelProperty(value = "总股本")
    private BigDecimal totalEquity;

    @ApiModelProperty(value = "流通股本")
    private BigDecimal totalCirculate;

    @ApiModelProperty(value = "当前价格")
    private BigDecimal nowPrice;

    @ApiModelProperty(value = "总市值")
    private BigDecimal totalMv;

    @ApiModelProperty(value = "流通市值")
    private BigDecimal circulateMv;

    @ApiModelProperty(value = "总现金流")
    private BigDecimal totalCash;

    @ApiModelProperty(value = "统计日期")
    private String dDate;

    @ApiModelProperty(value = "统计时间")
    private String statTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getListDate() {
        return listDate;
    }

    public void setListDate(String listDate) {
        this.listDate = listDate;
    }

    public BigDecimal getPerNet() {
        return perNet;
    }

    public void setPerNet(BigDecimal perNet) {
        this.perNet = perNet;
    }

    public BigDecimal getPerIncome() {
        return perIncome;
    }

    public void setPerIncome(BigDecimal perIncome) {
        this.perIncome = perIncome;
    }

    public BigDecimal getNetProfit() {
        return netProfit;
    }

    public void setNetProfit(BigDecimal netProfit) {
        this.netProfit = netProfit;
    }

    public BigDecimal getGrowthRate() {
        return growthRate;
    }

    public void setGrowthRate(BigDecimal growthRate) {
        this.growthRate = growthRate;
    }

    public BigDecimal getTradeIncome() {
        return tradeIncome;
    }

    public void setTradeIncome(BigDecimal tradeIncome) {
        this.tradeIncome = tradeIncome;
    }

    public BigDecimal getPerCash() {
        return perCash;
    }

    public void setPerCash(BigDecimal perCash) {
        this.perCash = perCash;
    }

    public BigDecimal getPerFund() {
        return perFund;
    }

    public void setPerFund(BigDecimal perFund) {
        this.perFund = perFund;
    }

    public BigDecimal getPerUndistributeProfit() {
        return perUndistributeProfit;
    }

    public void setPerUndistributeProfit(BigDecimal perUndistributeProfit) {
        this.perUndistributeProfit = perUndistributeProfit;
    }

    public BigDecimal getTotalEquity() {
        return totalEquity;
    }

    public void setTotalEquity(BigDecimal totalEquity) {
        this.totalEquity = totalEquity;
    }

    public BigDecimal getTotalCirculate() {
        return totalCirculate;
    }

    public void setTotalCirculate(BigDecimal totalCirculate) {
        this.totalCirculate = totalCirculate;
    }

    public BigDecimal getNowPrice() {
        return nowPrice;
    }

    public void setNowPrice(BigDecimal nowPrice) {
        this.nowPrice = nowPrice;
    }

    public BigDecimal getTotalMv() {
        return totalMv;
    }

    public void setTotalMv(BigDecimal totalMv) {
        this.totalMv = totalMv;
    }

    public BigDecimal getCirculateMv() {
        return circulateMv;
    }

    public void setCirculateMv(BigDecimal circulateMv) {
        this.circulateMv = circulateMv;
    }

    public BigDecimal getTotalCash() {
        return totalCash;
    }

    public void setTotalCash(BigDecimal totalCash) {
        this.totalCash = totalCash;
    }

    public String getdDate() {
        return dDate;
    }

    public void setdDate(String dDate) {
        this.dDate = dDate;
    }

    public String getStatTime() {
        return statTime;
    }

    public void setStatTime(String statTime) {
        this.statTime = statTime;
    }

    @Override
    public String toString() {
        return "BaseInfo{" +
                "id=" + id +
                ", code=" + code +
                ", name=" + name +
                ", area=" + area +
                ", listDate=" + listDate +
                ", perNet=" + perNet +
                ", perIncome=" + perIncome +
                ", netProfit=" + netProfit +
                ", growthRate=" + growthRate +
                ", tradeIncome=" + tradeIncome +
                ", perCash=" + perCash +
                ", perFund=" + perFund +
                ", perUndistributeProfit=" + perUndistributeProfit +
                ", totalEquity=" + totalEquity +
                ", totalCirculate=" + totalCirculate +
                ", nowPrice=" + nowPrice +
                ", totalMv=" + totalMv +
                ", circulateMv=" + circulateMv +
                ", totalCash=" + totalCash +
                ", dDate=" + dDate +
                ", statTime=" + statTime +
                "}";
    }
}
